home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-02 | 1.8 KB | 50 lines | [ttro/ttxt] |
- sync FKEY
-
- Written 2/5/93 by Allon Stern
-
- What does it do?
-
- Whenever programs write to a disk, they go through a cache, which is in
- memory. If the part of the file which is being written to is in the cache,
- then the change takes place in memory, to be written out to the disk later.
- This saves time on I/O; having a large disk cache can make disk-intensive
- applications go much faster.
-
- The drawback of having a large cache, though, is if you crash, the information
- in the cache won't have been written out to disk. Any changes that
- were made will be lost.
-
- The sync FKEY goes through all mounted volumes and writes out any
- outstanding information which may still be in the cache. It does this
- by using PBFlushVol.
-
- To give user feedback, for each volume flushed, it plays a short sound.
- Thus if you have three volumes mounted, it will play the sound three
- times.
-
- If an error occured in the PBFlushVol call, an error dialog will appear.
- If the error dialog CAN'T appear (due to serious trouble), sync will
- SysBeep three times.
-
-
- How to install:
-
- Using ResEdit, copy the FKEY resource from the "sync" file into your
- system file. By default, it is FKEY ID# 7, but you can change this
- to suit your liking. The resource id determines which number key
- to press (along with command and shift) to activate the FKEY.
- No rebooting is necessary.
-
- If you want it to play a sound when flushing a volume, drag the
- "Sync sound" file into your system suitcase (system 7 users) or
- install the 'snd ' resource into your system file using ResEdit
- or a sound mover program. If you want a different sound to play,
- you must name it "Sync sound" and install it in your system.
- If the sound isn't present, the FKEY will still work, but it won't
- give any feedback.
-
-
- Known bugs:
-
- For some reason, the error dialog has a single garbage character
- after the error message.